<?php if (!defined("_ECRIRE_INC_VERSION")) return;
/**
 * Aloha Cart
 *
 * @author     Aleksey Yaroshchuk (aleksey.yaroshchuk@gmail.com)
 * @license    GNU/GPL
 * @package    plugins
 * @subpackage alohacart
 * @copyright  (c) Aleksey Yaroshchuk 2011-2012
 * @link       http://www.spip-contrib.net/AlohaCart
 */

include_spip('functions/pdk_common');

function formulaires_alohacart_orders_excel_download_verifier_dist(){
    $erreurs = array();
     
    $verifier = charger_fonction('verifier', 'inc/');
    if (_request('date_from')) {
        $erreurs['date_from'] = $verifier(_request('date_from'),'date');
        if (!$erreurs['date_from']) unset($erreurs['date_from']);
    } 
        
    if (_request('date_to')) {
        $erreurs['date_to'] = $verifier(_request('date_to'), 'date');
        if (!$erreurs['date_to']) unset($erreurs['date_to']);
    }
    
    return $erreurs;
}